﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Micronet.OpenWeb.Com.Controls;
using Micronet.OpenWeb.Common;
using Micronet.OpenWeb.Utils;

namespace Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.OpenPersonality
{
    public partial class HomeProfileWorkProcessEdit : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (OwConstants.QueryString.ID.OwQsIsExist())
            {
                OpenHomeProfileWorkProcessDV.DefaultMode = DetailsViewMode.Edit;
            }
            else
            {
                OpenHomeProfileWorkProcessDV.DefaultMode = DetailsViewMode.Insert;

            }
        }
        protected void OwJobTitleCbb_Init(object sender, EventArgs e)
        {

            OwComboBox cbb = sender as OwComboBox;

            cbb.OwDataSourceBindFromType<OwEnum.JobTitles>(useLanguage: false);
        }

    }
}